package com.wy.xinzhi.common.pojos;

import java.sql.Timestamp;

/**
 * TUserAuthId entity. @author MyEclipse Persistence Tools
 */

public class TUserAuthId implements java.io.Serializable {

	// Fields

	private String authId;
	private String userId;
	private Timestamp createDate;
	private String res1;
	private String res2;

	// Constructors

	/** default constructor */
	public TUserAuthId() {
	}

	/** minimal constructor */
	public TUserAuthId(Timestamp createDate) {
		this.createDate = createDate;
	}

	/** full constructor */
	public TUserAuthId(String authId, String userId, Timestamp createDate,
			String res1, String res2) {
		this.authId = authId;
		this.userId = userId;
		this.createDate = createDate;
		this.res1 = res1;
		this.res2 = res2;
	}

	// Property accessors

	public String getAuthId() {
		return this.authId;
	}

	public void setAuthId(String authId) {
		this.authId = authId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public String getRes1() {
		return this.res1;
	}

	public void setRes1(String res1) {
		this.res1 = res1;
	}

	public String getRes2() {
		return this.res2;
	}

	public void setRes2(String res2) {
		this.res2 = res2;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TUserAuthId))
			return false;
		TUserAuthId castOther = (TUserAuthId) other;

		return ((this.getAuthId() == castOther.getAuthId()) || (this
				.getAuthId() != null && castOther.getAuthId() != null && this
				.getAuthId().equals(castOther.getAuthId())))
				&& ((this.getUserId() == castOther.getUserId()) || (this
						.getUserId() != null && castOther.getUserId() != null && this
						.getUserId().equals(castOther.getUserId())))
				&& ((this.getCreateDate() == castOther.getCreateDate()) || (this
						.getCreateDate() != null
						&& castOther.getCreateDate() != null && this
						.getCreateDate().equals(castOther.getCreateDate())))
				&& ((this.getRes1() == castOther.getRes1()) || (this.getRes1() != null
						&& castOther.getRes1() != null && this.getRes1()
						.equals(castOther.getRes1())))
				&& ((this.getRes2() == castOther.getRes2()) || (this.getRes2() != null
						&& castOther.getRes2() != null && this.getRes2()
						.equals(castOther.getRes2())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAuthId() == null ? 0 : this.getAuthId().hashCode());
		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37
				* result
				+ (getCreateDate() == null ? 0 : this.getCreateDate()
						.hashCode());
		result = 37 * result
				+ (getRes1() == null ? 0 : this.getRes1().hashCode());
		result = 37 * result
				+ (getRes2() == null ? 0 : this.getRes2().hashCode());
		return result;
	}

}